package com.jdbc.text8;

import java.sql.SQLException;

public class Fun1 {
    public static void main(String[] args) throws SQLException {
        NewsDaoImp1 newsDaoImp1 = new NewsDaoImp1();
        //newsDaoImp1.getNewsByTitle();
        //newsDaoImp1.addNews(7,"sfdas","sdfsd","asdfas",12);
        //newsDaoImp1.addNews(3,2,"军事","dfsd","dsf",new Date());
        //newsDaoImp1.deleteNews(7);
       newsDaoImp1.updateNews(3,"java");
    }
}
